﻿using EntityModel.PageListInfor;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel.Customers
{
    /// <summary>
    /// 商品表
    /// </summary>
    [Table("goods")]
    public class AikeApplet_goods: Pagination
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        [Key]
        public int goodsId { get; set; }

        /// <summary>
        /// 商品编号
        /// </summary>
        [MaxLength(20)]
        public string goodsSn { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [MaxLength(200)]
        public string goodsName { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        public string goodsImg { get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        public int shopId { get; set; }

        /// <summary>
        /// 市场价
        /// </summary>
        [MaxLength(12)]
        public decimal marketPrice { get; set; }

        /// <summary>
        /// 店铺价
        /// </summary>
        [MaxLength(12)]
        public decimal shopPrice { get; set; }

        /// <summary>
        /// 库存预警
        /// </summary>
        public int warnStock { get; set; }

        /// <summary>
        /// 商品总库存
        /// </summary>
        public int goodsStock { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [MaxLength(10)]
        public string goodsUnit { get; set; }

        /// <summary>
        /// 促销信息
        /// </summary>
        [MaxLength(2000)]
        public string goodsTips { get; set; }

        /// <summary>
        /// 是否上架
        /// 0：不上架，1：商家
        /// </summary>
        public int isSale { get; set; } = 1;

        /// <summary>
        /// 是否精品
        /// 0：否，1：是
        /// </summary>
        public int isBest { get; set; } = 0;

        /// <summary>
        /// 是否热销产品
        /// 0：否，1：是
        /// </summary>
        public int isHot { get; set; } = 0;

        /// <summary>
        /// 是否新品
        /// 0：否，1：是
        /// </summary>
        public int isNew { get; set; } = 0;

        /// <summary>
        /// 是否推荐
        /// 0：否，1：是
        /// </summary>
        public int isRecom { get; set; } = 0;

        /// <summary>
        /// 商品分类编号
        /// </summary>
        public int goodsCatId { get; set; }

        /// <summary>
        /// 商品分类ID路径
        /// </summary>
        [MaxLength(300)]
        public string goodsCatIdPath { get; set; }

        /// <summary>
        /// 最后一级商品分类id
        /// </summary>
        public int goodsnetxCatId { get; set; }

        /// <summary>
        /// 门店商品分类第一级ID
        /// </summary>
        public int shopCatId1 { get; set; }

        /// <summary>
        /// 门店商品第二级分类ID
        /// </summary>
        public int shopCatId2 { get; set; }

        /// <summary>
        /// 品牌id
        /// </summary>
        public int brandId { get; set; }

        /// <summary>
        /// 商品描述
        /// </summary>
        [MaxLength(2000)]
        public string goodsDesc { get; set; }

        /// <summary>
        /// 商品状态
        /// -1:违规 0:未审核 1:已审核
        /// </summary>
        public int goodsStatus { get; set; }

        /// <summary>
        /// 总销量
        /// </summary>
        public int saleNum { get; set; }

        /// <summary>
        /// 上架时间
        /// </summary>
        public DateTime saleTime { get; set; }

        /// <summary>
        /// 访问数
        /// </summary>
        public int visitNum { get; set; }

        /// <summary>
        /// 评论数
        /// </summary>
        public int appraiseNum { get; set; }

        /// <summary>
        /// 商品相册
        /// </summary>
        public string gallery { get; set; }

        /// <summary>
        /// 商品SEO关键字
        /// </summary>
        [MaxLength(200)]
        public string goodsSeoKeywords { get; set; }

        /// <summary>
        /// 删除标志
        /// -1:删除 1:有效
        /// </summary>
        public int dataFlag { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createTime { get; set; }

        /// <summary>
        /// 商品类型
        /// 0:实物商品 1:虚拟商品
        /// </summary>
        public int goodsType { get; set; } = 0;

        /// <summary>
        /// 是否分销商品	
        /// 0:否 1:是
        /// </summary>
        public int isDistribut { get; set; }

        /// <summary>
        /// 分销佣金
        /// </summary>
        public decimal commission { get; set; }

        /// <summary>
        /// 是否包邮
        /// 0:否 1:是
        /// </summary>
        public int isFreeShipping { get; set; } = 0;

        /// <summary>
        /// 商品关键字搜索
        /// 该字段内容由系统生成，取商品名称+属性内容
        /// </summary>
        [MaxLength(2000)]
        public string goodsSerachKeywords { get; set; }

        /// <summary>
        /// 成本价
        /// </summary>
        public decimal costPrice { get; set; }

        /// <summary>
        /// 商品SEO描述
        /// </summary>
        public string goodsSeoDesc { get; set; }

        /// <summary>
        /// 计价方式
        /// 1:计件 2:重量 3:体积
        /// </summary>
        public int shippingFeeType { get; set; }

        /// <summary>
        /// 商品重量	
        /// </summary>
        public double goodsWeight { get; set; }

        /// <summary>
        /// 商品体积
        /// </summary>
        public double goodsVolume { get; set; }

        /// <summary>
        /// 店铺快递公司ID
        /// </summary>
        public int shopExpressId { get; set; }

        /// <summary>
        /// 是否属于批发商品	
        /// 1：批发商品 0：不是批发商品
        /// </summary>
        public int isPifa { get; set; } = 0;

        /// <summary>
        /// 搜藏该商品的人数
        /// </summary>
        public int collectNum { get; set; }
    }
}
